home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / os20 / cdity / huntwin4.lha / huntwindows.doc < prev    next >
Text File  |  1993-03-31  |  8KB  |  235 lines

  1.  
  2.              Huntwindows V2.4 by Jörg Bublath
  3.              ================================
  4.  
  5. COPYRIGHT:
  6.  
  7. Huntwindows V2.4 is freely distributable.
  8. Huntwindows V2.4 is free to be spread on public-domain and shareware disks
  9. especially on Fred Fish's AmigaLibDisks, as long as they are sold for a
  10. reasonable charge that is less than US $6 or DM 8.- .
  11. For use in commercial products the permission of the author is required.
  12. Huntwindows V2.4 may be copied and distributed via electronic networks such
  13. as the Internet, also it may be moved on anonymous ftp-servers,
  14. mail-boxes or BBS's.
  15. The Copyright is still by the Author.
  16. You may use the source for your own non-commercial purposes, but you are
  17. not allowed to spread a changed version under the same name. If you think
  18. you have made a useful change contact me, so I may include it.
  19.  
  20.  
  21. REQUIREMENTS:
  22.  
  23. Kickstart 2.0 (V36) or higher
  24.  
  25.  
  26. PREFACE:
  27.  
  28. Coming with 2.0 you can make screens bigger than the visual size of your
  29. monitor. After I tried to catch windows like requesters etc. on my
  30. double-sized workbench, I got enough and wrote this little tool.
  31. It hangs itself into the VBI to find out which window in being
  32. activated and moves the screen to show the window in full view.
  33. Additionally there are some other related features like remembering
  34. and activating one window for each screen or bring the window or screen
  35. being activated to front.
  36. For full user-comfort, coming with version 2.0, Huntwindows is now a
  37. commodity and can placed into your WBStartup Drawer and has a Graphical
  38. User Interface.
  39.  
  40. USAGE:
  41.  
  42. Template:
  43.  MOVE/S,SFRONT/S,WFRONT/S,DEFPUB/S,ALWAYS/S,REMWIN/S,MOVEMOUSE/S,CX_POPUP/S
  44.  HADJ/K,VADJ/K,SCREEN/K,WINDOW/K
  45.  
  46. or the same options as worbench tooltypes.
  47.  
  48. MOVE:
  49.   Enable ScreenMove() whenever a window is actived - this option should always
  50.   be given, because it's the main purpose of the program :)
  51.  
  52. SFRONT:
  53.   Enable the ScreenToFront() whenever a window is activated
  54.  
  55. WFRONT:
  56.   Do an additional WindowToFront() for windows being activated.
  57.   Due to problems this option won't affect Workbench Drawers.
  58.  
  59. DEFPUB:
  60.   If the Intuition FirstScreen is a PublicScreen it will automaticly set as
  61.   DefaultPubScreen, so all windows opening on the default will use the
  62.   FirstScreen.
  63.  
  64. ALWAYS:
  65.   Turns off the optimization done when a window is already totally visible.
  66.   This will only have any affect if a HADJ or VADJ option is set.
  67.  
  68. REMWIN:
  69.   Remember the ActiveWindow for every screen. When switching through the
  70.   screens Huntwindows will activate the last window that was active when it
  71.   was the FirstScreen. A maximum of 64 different screens will be remembered
  72.   - that should be enough, right?
  73.   This option was based on TWA by Matthias Scheler.
  74.  
  75. MOVEMOUSE:
  76.   When you try to click on a close-gadget (or any other) of a window that is
  77.   not completely visible, Huntwindows will move the window to show it
  78.   completely before you have time to release the button and activate it. When
  79.   this option is set Huntwindows will move the mouse with the screen, so it
  80.   still is at the same position as before, and the window will really close
  81.   (or whatever).
  82.   This movement will only take place if the mouse was on a position that was
  83.   already visible before scrolling - otherwise no mouse move will occur.
  84.  
  85. CX_POPUP:
  86.   Show the Graphical User Interface on startup.
  87.   The Interface will be automaticly shown, if Huntwindows is already running.
  88.  
  89. HADJ=<a>: (only the first letter of the string is significant)
  90.   Horizontal Adjustment:
  91.   l : Left - means that IF scrolling is necessary, huntwindows will try to get
  92.          the window adjusted to the left edge of the screen
  93.   r : Same as above with the right edge
  94.   c : Same as above but centering in the screen
  95.   Everything else will switch the adjustment off
  96.  
  97. VADJ=<a>: (only the first letter of the string is significant)
  98.   Horizontal Adjustment:
  99.   t : Top - means that IF scrolling is necessary, huntwindows will try to get
  100.         the window adjusted to the top edge of the screen
  101.   b : Same as above with the buttom edge
  102.   c : Same as above but centering in the screen
  103.   Everything else will switch the adjustment off
  104.  
  105. SCREEN=<pattern>
  106.   All actions will only take place if the DefaultTitle of the actual screen
  107.   matches to the given pattern. If no pattern is given, all screens match.
  108.   If you only want to exclude some screens, simply negate the pattern.
  109.   For example: SCREEN=~(myscreen#?)
  110.   The patternmatching is case insensitive.
  111.  
  112. WINDOW=<pattern>
  113.   Same as screen, but checks the Title of the window that is going to be
  114.   processed.
  115.  
  116. From CLI you will have to start the program in the background via
  117.  
  118.        run <nil: >nil: huntwindows [options]
  119.  
  120. or whatever you like. If you want to quit Huntwindows simply break the
  121. task or quit it with the "Exchange" Commodity Program.
  122.  
  123. From Workbench adjust the tooltypes and simply start by double-clicking.
  124.  
  125.  
  126. THE GRAPHICAL USER INTERFACE:
  127.  
  128. By defining CX_POPUP, by starting Huntwindows a second time or by using
  129. "Show Interface" from the "Exchange" Commodity Program a GUI comes up.
  130.  
  131. All options and tooltypes can be changed here. So you can play around to
  132. find out your configuration. If you already have placed Huntwindows in your
  133. wbstartup-drawer you may simply click "Save" to add all your options as
  134. tooltypes to the icon. When starting from CLI, the "Save"-gadget will be
  135. disabled.
  136. The tooltype "DONOTWAIT", which is necessary when placing Huntwindows into
  137. wbstartup is automaticly added on saving.
  138.  
  139. When changing the pattern from the GUI, a check will be done when you press
  140. return. If there is an error in the pattern, a requester comes up and tells
  141. you so. If you do not re-edit the pattern until it is ok, will match nothing.
  142. which is equal to disabling Huntwindows.
  143.  
  144.  
  145. THANX:
  146.  
  147. Michael Suelmann for help with the workbench/gadtools
  148. Markus 'ill' Illenseer for ideas and Aswarm (where I looked up how to do
  149. commodities)
  150. Georg 'Gucky' Hessmann und Matthias 'Tron' Scheler for the idea of the
  151. REMWIN option.
  152.  
  153.  
  154. TECHNICAL:
  155.  
  156. For reaching this Huntwindows installs a Vertical-Blank interrupt-server,
  157. which tests if the ActiveWindow and the FirstScreen recorded by intuition
  158. differs from the last interrupt and then signals the main-task to move the
  159. display.
  160. Don't mind it taking away too much CPU time - if you have a look at the
  161. source at label 'Interrupt3' you will find that it doesn't do anyhing that
  162. is worth arguing about.
  163.  
  164.  
  165. HISTORY:
  166.  
  167. Version 1.0:
  168. Worked with patching vectors, which didn't solve the problem of getting
  169. every active window completly.
  170.  
  171. Version 1.1:
  172. Now uses VBI for catching active windows.
  173.  
  174. Version 1.2:
  175. Added some new options and removed some bugs.
  176.  
  177. Version 1.3:
  178. WBONLY and WFRONT option added. WFRONT will not make WindowToFront() on
  179. Backdrop and WBENCHWINDOW windows because it causes problems.
  180. Workbenchsupport added.
  181.  
  182. Version 1.4:
  183. Crash when entering wrong arguments removed
  184. Added DEFPUB option
  185.  
  186. Version 2.0:
  187. Enforcer Hits (old debugging stuff) removed.
  188. Added Commodity support.
  189. Added GUI.
  190.  
  191. Version 2.1:
  192. Removed small bugs.
  193. Added REMWIN feature.
  194.  
  195. Version 2.2:
  196. Removed bug in argument-order at CLI-call.
  197. Added MOVEMOUSE feature.
  198.  
  199. Version 2.3:
  200. Added SCREEN and WINDOW option.
  201. Redesigned GUI.
  202.  
  203. Version 2.4:
  204. Now tooltypes can be saved to icon.
  205. Added "Save", "About" and "GUI Popup" Gadgets to GUI.
  206. Removed crash at closedown and some minor bugs.
  207.  
  208. TODO:
  209. -Hotkey to activate the GUI?
  210.  
  211. BUGS:
  212.  I hope none
  213.  
  214.  
  215. FINAL REMARKS:
  216.  
  217. This tool is very nice to be used together with Windowshuffle by
  218. Stefan Sticht, for hopping through the windows and actually seeing them,
  219. when having a BIG workbench.
  220. Huntwindows could do a lot of more interesting things - if I could think
  221. about anything, so if you have ideas please contact me!
  222.  
  223. For problems and ideas, reach me at:
  224.  
  225. EMAIL: bublath@forwiss.uni-passau.de
  226.  
  227. IRC: Skull
  228.  
  229. SMAIL: Jörg Bublath
  230.        Holzheimerstr. 4/E07
  231.        8390 Passau
  232.        Germany
  233.        Phone: Germany-0851-59947
  234.  
  235.